<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>忘记密码</title>
    <script>
        function showSuccessMessage() {
            alert("密码重置成功");
        }
        function register() {
        // 处理登录逻辑
        // 可以使用 JavaScript 进行验证、跳转等操作
        }
    </script>
</head>
<body>
    <h1>忘记密码</h1>
    <!-- 表单的action属性指定了提交表单数据的后台处理脚本（reset_password.php） -->
    <form action="reset_password.php" method="POST">
        <label for="email">注册邮箱：</label>
        <input type="email" id="email" name="email" required><br><br>
        <label for="newpassword">新的密码：</label>
        <input type="newpassword" id="newpassword" name="newpassword" required><br><br>
        <label for="repeatpassword">确认密码：</label>
        <input type="repeatpassword" id="repeatpassword" name="repeatpassword" required><br><br>

        <div class="form-group">
            <button onclick="showSuccessMessage()">
                <!-- <input type="submit" value="重置密码" href="login.html"> -->
                <a href="login.html">重置密码</a>      
            </button>
        </div>
        
    </form>
</body>
</html>
